package com.itheima.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Date;

/**
 * 带有token的employee
 * 存到redis 会进行序列化  要实现一下Serializable接口
 *
 * @author msi
 */
@Data
public class EmployeeVO implements Serializable {
    /**
     * @param serialVersionUID 设置一个serialVersionUID版本id 保证数据不会出错
     */
    private static final long serialVersionUID = 861231321431123189L;
    private String id;
    private String name;
    private String username;
    private String password;
    private String phone;
    private String sex;
    private String idNumber;
    private BigInteger status;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    private Long createUser;
    private Long updateUser;
    private String token;

}
